:root{
    --bg:#4A9782;
    --bos:#FFF9E5;
           --mantap:#D6A309;
  --primary:#20883A;
}

*{
    border: none;
    outline: none;
    text-decoration:none;
    box-sizing: border-box ;
}
nav {
      background-color: #1e293b;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px;
      position: fixed;              /* ✅ membuat navbar tetap di atas */
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;               /* ✅ pastikan di atas elemen lain */
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    /* Tambahkan ruang di atas konten agar tidak tertutup navbar */
    main {
      padding-top: 70px;
    }
      .logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo img {
      width: 40px;
      height: 40px;
      border-radius: 50%;
    }

    .logo span {
      font-size: 20px;
      font-weight: bold;
    }

    .nav-links {
      display: flex;
      gap: 20px;
      align-items: center;
    }

    .nav-links a {
      text-decoration: none;
      color: white;
      font-weight: 500;
      transition: color 0.3s;
    }

    .nav-links a:hover {
      color: #38bdf8;
    }
     nav {
      background-color:var(--);
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px;
      position: fixed;              /* ✅ membuat navbar tetap di atas */
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;               /* ✅ pastikan di atas elemen lain */
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    nav{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index: 9999;
    color:white;
    background-color:var(--primary) ;
}
nav a{
    color:WHITE;
}
.navbar .dropdown-menu li a{
    text-decoration: none;
    color:black;
    transition:all .5s ease;
    font-size:15px;
}
.navbar .dropdown-menu li a:hover{
    color:white;
}
.navbar .dropdown-menu li{
    padding:10px;
}
.navbar .dropdown-menu li:hover{
    background-color:var(--primary);
} 
.navbar-nav{
    gap:20px;
}
.navbar-brand{
    font-size:3rem;
    font-weight:bold;
}
.nav-item{
    font-size:1rem;
}
.navbar-nav .nav-item a{
    font-size:17px;
}
    /* 

    /* ====== DROPDOWN ====== */
    .dropdown {
      position: relative;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      background-color: #334155;
      top: 100%;
      left: 0;
      min-width: 150px;
      border-radius: 5px;
      overflow: hidden;
      z-index: 1;
    }

    .dropdown-content a {
      display: block;
      padding: 10px;
      color: white;
      text-decoration: none;
    }

    .dropdown-content a:hover {
      background-color: #475569;
    }

    .dropdown:hover .dropdown-content {
      display: block;
    }

    /* ====== HAMBURGER MENU ====== */
    .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
      gap: 5px;
    }

    .hamburger div {
      width: 25px;
      height: 3px;
      background-color: white;
      border-radius: 5px;
      transition: all 0.3s;
    }

    /* ====== SIDEBAR (untuk mobile) ====== */
    .sidebar {
      position: fixed;
      top: 0;
      left: -100%;
      width: 250px;
      height: 100%;
      background-color: #1e293b;
      padding: 60px 20px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      transition: left 0.3s;
      z-index: 999;
    }

    .sidebar.active {
      left: 0;
    }

    .sidebar a {
      color: white;
      text-decoration: none;
      font-size: 18px;
    }

    .sidebar a:hover {
      color: #38bdf8;
    }

    .close-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      font-size: 25px;
      cursor: pointer;
      color: white;
    }
     header {
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      color: white;
      padding: 15px 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    header .logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    header .logo img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
    }

    header nav a {
      color: white;
      margin: 0 10px;
      text-decoration: none;
      font-weight: 500;
      transition: var(--transition);
    }

    header nav a:hover {
      color: #d1f5e0;
    }

       /* ====== DROPDOWN ====== */
    .hero {
            background: url('/gambar/sekolah6.jpg') no-repeat center center/cover;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-shadow: 2px 2px 4px #000;
        }
     .hero {
      width: 100%;
      height: 60vh;
      color: white;
      text-align: center;
      padding: 20px;
      position: relative;
      background-size: cover;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
    }

    .hero-content {
      position: relative;
      z-index: 1;
      width: 100%;
      
    }
    .hero h1 {
      font-size: 3.5rem;
      margin-bottom: 10px;
      font-family: "Raleway", sans-serif;
   font-optical-sizing: auto;
   font-style: normal;
   font-weight:bold;
    }

    .hero p {
      font-size: 1.1rem;
      font-family: "Raleway", sans-serif;
   font-optical-sizing: auto;
   font-style: normal;
   
    }

    .section h2 {
      font-family: "Raleway", sans-serif;
   font-optical-sizing: auto;
   font-style: normal;
   font-weight:bold;
      color: black;
      text-align: center;
      margin-bottom: 20px;
    }

    .profil-container {
      margin-block:5rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      align-items: center;
    }

    .profil-container img {
      width: 100%;
      border-radius: var(--radius);
      box-shadow: 0 4px 10px var(--shadow);
    }

    .profil-text {
      line-height: 1.8;
    }

    /* ===== VISI & MISI ===== */
    .visi-misi {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: center;
      margin-top: 40px;
    }

    .card {
      background: var(--light);
      border-radius: var(--radius);
      box-shadow: 0 4px 15px var(--shadow);
      padding: 25px;
      width: 300px;
      transition: var(--transition);
    }

    .card:hover {
      transform: translateY(-5px);
    }

    .card h3 {
      color: var(--secondary);
      margin-bottom: 10px;
    }
    

   
 
   

    @media (max-width: 768px) {
      .hero h1 {
        font-size: 2rem;
      }
      .profil-container {
        grid-template-columns: 1fr;
      }
      header nav {
        display: none;
      }
    }

    /* ====== RESPONSIVE ====== */
    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .hamburger {
        display: flex;
      }
    }
    @media (max-width: 768px) {
   html{
    font-size:80%;
   }
    }
    @media (max-width:986px){
      html{
        font-size: 80%;
      }
    }
